import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter/material.dart';
import 'package:maihealth/utils/screenUtil.dart';
GlobalKey<EasyRefreshState> easyRefreshKey = new GlobalKey<EasyRefreshState>();
GlobalKey<RefreshHeaderState> _headerKey = new GlobalKey<RefreshHeaderState>();
GlobalKey<RefreshFooterState> _footerKey = new GlobalKey<RefreshFooterState>();

//全局自定义头部
 ClassicsHeader refresh_Header = ClassicsHeader(
    key: _headerKey,
    refreshText:'下拉刷新',
    refreshReadyText: '下拉刷新',
    refreshingText:'正在刷新...',
    refreshedText: '加载完成',
    bgColor: Colors.transparent,
    textColor: Colors.black87,
    moreInfoColor: Colors.black54,
    refreshHeight: kstatusBarH+50,
    showMore: true,
);
//全局自定义尾部
 ClassicsFooter refresh_Footer = ClassicsFooter(
    key: _footerKey,
    loadText:'上拉加载更多',
    loadReadyText: '上拉加载更多',
    loadingText:'正在加载...',
    loadedText: '加载完成',
    noMoreText: "我是有底线的",  
    bgColor: Colors.transparent,
    textColor: Colors.black87,
    moreInfoColor: Colors.black54,
    showMore: true,
);